package com.myres.model;

import java.sql.Time;
import java.sql.Timestamp;
import java.util.Set;

public class Shop extends BasicObject{
	/**
	 * this is shop runs normally
	 */
	public static final int SHOP_STATUS_OK=0;
	/**
	 * this shop is closed,has no authority to  run now
	 */
    public static final int SHOP_STATUS_CLOSED=1;
	/**
	 * 
	 */
	private static final long serialVersionUID = 6138407099648816845L;
	/**
	 * the owner of this shop,reference to user
	 */
	private User owner;
	/**
	 * the name if this shop
	 */
	private String name;
	/**
	 * the status of this shop
	 */
	private int status;
	/**
	 * the base path of icon of this shop
	 * big icon maybe 160*160:icon_1.png
	 * normal icon maybe 96*96:icon_2.png
	 * small icon maybe 48*48:icon_3.png
	 */
	private String icon;
	/**
	 * the shop style ,we may supply serial style for shop owner
	 */
	private int templateId;
	/**
	 * the slogan of this shop
	 */
	private String slogan;
	/**
	 * the sub industry of this shop
	 */
	private String industry;
	/**
	 * telphone of shop
	 */
	private String telphone;
	/**
	 * address of shop
	 */
	private String address;
	/**
	 * license of shop
	 */
	private String license;
	/**
	 * addtime of this shop
	 */
	private Timestamp addTime;
	/**
	 * the time this shop service is available
	 */
	private Time startTime;
	/**
	 * the time this shop close everyday
	 */
	private Time endTime;
	/**
	 * the service scope 
	 */
	private String scope;
	/**
	 * this score of this shop,given by customer
	 */
	private int score;
	
	private Set<Product> products;
	private Set<Order> orders;
	
	
	
	public Set<Product> getProducts() {
		return products;
	}
	public void setProducts(Set<Product> products) {
		this.products = products;
	}
	public Set<Order> getOrders() {
		return orders;
	}
	public void setOrders(Set<Order> orders) {
		this.orders = orders;
	}
	public User getOwner() {
		return owner;
	}
	public void setOwner(User owner) {
		this.owner = owner;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public int getTemplateId() {
		return templateId;
	}
	public void setTemplateId(int templateId) {
		this.templateId = templateId;
	}
	public String getSlogan() {
		return slogan;
	}
	public void setSlogan(String slogan) {
		this.slogan = slogan;
	}
	public String getIndustry() {
		return industry;
	}
	public void setIndustry(String industry) {
		this.industry = industry;
	}
	public String getTelphone() {
		return telphone;
	}
	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getLicense() {
		return license;
	}
	public void setLicense(String license) {
		this.license = license;
	}
	public Timestamp getAddTime() {
		return addTime;
	}
	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}
	public Time getStartTime() {
		return startTime;
	}
	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}
	public Time getEndTime() {
		return endTime;
	}
	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
}
